from types import FunctionType


class Foo(object):
    def func1(self, arg):
        print(arg)


obj = Foo()
obj.func1('mobiledj')


obj = Foo()
Foo.func1(obj, 'jerry')


if isinstance(Foo.func1, FunctionType):
    print('func')
